<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>三角洲行动数据同步中心 - kkrb.net数据镜像</title>
    <link rel="icon" href="/favicon.ico">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Microsoft YaHei', Arial, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: #333;
            line-height: 1.6;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }
        
        .header {
            text-align: center;
            background: rgba(255, 255, 255, 0.95);
            padding: 30px;
            border-radius: 15px;
            margin-bottom: 30px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        }
        
        .header h1 {
            color: #4a5568;
            font-size: 2.5em;
            margin-bottom: 10px;
        }
        
        .header p {
            color: #718096;
            font-size: 1.2em;
        }
        
        .main-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
            margin-bottom: 30px;
        }
        
        .card {
            background: rgba(255, 255, 255, 0.95);
            padding: 25px;
            border-radius: 12px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease;
        }
        
        .card:hover {
            transform: translateY(-5px);
        }
        
        .card h3 {
            color: #4a5568;
            margin-bottom: 15px;
            font-size: 1.4em;
            border-bottom: 2px solid #667eea;
            padding-bottom: 8px;
        }
        
        .password-item {
            background: #f7fafc;
            padding: 15px;
            margin: 10px 0;
            border-radius: 8px;
            border-left: 4px solid #667eea;
        }
        
        .password-number {
            font-size: 1.8em;
            font-weight: bold;
            color: #2d3748;
            text-align: center;
            margin: 10px 0;
            background: #e6fffa;
            padding: 10px;
            border-radius: 8px;
            border: 2px dashed #38b2ac;
        }
        
        .update-time {
            text-align: center;
            color: #718096;
            font-size: 0.9em;
            margin-top: 20px;
        }
        
        .feature-list {
            list-style: none;
        }
        
        .feature-list li {
            padding: 8px 0;
            border-bottom: 1px solid #e2e8f0;
        }
        
        .feature-list li:last-child {
            border-bottom: none;
        }
        
        .footer {
            text-align: center;
            background: rgba(255, 255, 255, 0.9);
            padding: 20px;
            border-radius: 12px;
            margin-top: 30px;
        }
        
        .sync-button {
            background: #48bb78;
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 1em;
            transition: background 0.3s ease;
        }
        
        .sync-button:hover {
            background: #38a169;
        }
        
        @media (max-width: 768px) {
            .main-content {
                grid-template-columns: 1fr;
            }
            
            .header h1 {
                font-size: 2em;
            }
        }

        /* 右上角登录按钮样式 */
        .top-right-menu {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 1000;
        }

        .login-btn {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            padding: 12px 20px;
            border-radius: 25px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
            transition: all 0.3s ease;
        }

        .login-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
        }

        /* 登录弹窗样式 */
        .modal {
            display: none;
            position: fixed;
            z-index: 2000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(5px);
        }

        .modal-content {
            background: white;
            margin: 5% auto;
            padding: 30px;
            border-radius: 20px;
            width: 90%;
            max-width: 400px;
            position: relative;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
            animation: modalSlideIn 0.3s ease;
        }

        @keyframes modalSlideIn {
            from {
                opacity: 0;
                transform: translateY(-50px) scale(0.9);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .close {
            position: absolute;
            top: 15px;
            right: 20px;
            color: #aaa;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
            transition: color 0.3s ease;
        }

        .close:hover {
            color: #ff4757;
        }

        .login-header {
            text-align: center;
            margin-bottom: 25px;
        }

        .login-header .logo {
            margin-bottom: 15px;
        }

        .login-header h2 {
            font-size: 24px;
            font-weight: 700;
            color: #2d3748;
            margin-bottom: 8px;
        }

        .login-header p {
            color: #718096;
            font-size: 14px;
        }

        .login-form {
            margin-bottom: 20px;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            font-size: 14px;
            font-weight: 600;
            color: #4a5568;
            margin-bottom: 8px;
        }

        .input-wrapper {
            position: relative;
            display: flex;
            align-items: center;
        }

        .input-icon {
            position: absolute;
            left: 12px;
            color: #a0aec0;
            z-index: 1;
        }

        .form-input {
            width: 100%;
            padding: 12px 12px 12px 40px;
            border: 2px solid #e2e8f0;
            border-radius: 12px;
            font-size: 14px;
            transition: all 0.3s ease;
            background: white;
        }

        .form-input:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        .form-options {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
        }

        .checkbox-label {
            display: flex;
            align-items: center;
            cursor: pointer;
            font-size: 14px;
            color: #4a5568;
        }

        .checkbox-label input {
            display: none;
        }

        .checkmark {
            width: 18px;
            height: 18px;
            border: 2px solid #e2e8f0;
            border-radius: 4px;
            margin-right: 8px;
            position: relative;
            transition: all 0.3s ease;
        }

        .checkbox-label input:checked + .checkmark {
            background: #667eea;
            border-color: #667eea;
        }

        .checkbox-label input:checked + .checkmark::after {
            content: '';
            position: absolute;
            left: 5px;
            top: 2px;
            width: 4px;
            height: 8px;
            border: solid white;
            border-width: 0 2px 2px 0;
            transform: rotate(45deg);
        }

        .forgot-password {
            color: #667eea;
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
        }

        .forgot-password:hover {
            text-decoration: underline;
        }

        .login-button {
            width: 100%;
            padding: 14px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .login-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
        }

        .login-footer {
            text-align: center;
        }

        .login-footer p {
            color: #718096;
            font-size: 14px;
            margin-bottom: 10px;
        }

        .register-link {
            color: #667eea;
            text-decoration: none;
            font-weight: 500;
        }

        .register-link:hover {
            text-decoration: underline;
        }

        @media (max-width: 480px) {
            .modal-content {
                margin: 10% auto;
                padding: 20px;
                width: 95%;
            }
            
            .login-btn {
                padding: 10px 16px;
                font-size: 12px;
            }
        }
    </style>
</head>
<body>


    <div class="container">
        <div class="header">
            <h1>🚀 三角洲行动数据同步中心</h1>
            <p>实时同步 www.kkrb.net 游戏数据 - 每日地图密码、配方更新、材料指南</p>
        </div>
        
        <div class="main-content">
            <div class="card">
                <h3>📅 今日地图密码</h3>
                <div class="password-item">
                    <strong>零号大坝：</strong>
                    <div class="password-number" id="dam-password">6728</div>
                    <p>位置：主变电站右侧地下管道</p>
                </div>
                
                <div class="password-item">
                    <strong>长弓溪谷：</strong>
                    <div class="password-number" id="valley-password">6809</div>
                    <p>位置：地图右下角地下入口</p>
                </div>
                
                <div class="password-item">
                    <strong>巴克什：</strong>
                    <div class="password-number" id="buckshi-password">2000</div>
                    <p>位置：大浴场北侧更衣区</p>
                </div>
                
                <div class="password-item">
                    <strong>航天基地：</strong>
                    <div class="password-number" id="base-password">4370</div>
                    <p>位置：工业区组装室二楼</p>
                </div>
                
                <div class="update-time">
                    最后更新: <span id="last-update">2024-01-15 14:30</span>
                </div>
            </div>
            
            <div class="card">
                <h3>🎮 游戏功能指南</h3>
                <ul class="feature-list">
                    <li>✅ 最新游戏配方更新</li>
                    <li>✅ 详细材料收集指南</li>
                    <li>✅ 收益分析与优化策略</li>
                    <li>✅ 每日地图密码实时同步</li>
                    <li>✅ 武器配件推荐配置</li>
                    <li>✅ 战术道具使用技巧</li>
                </ul>
                
                <div style="text-align: center; margin-top: 20px;">
                    <button class="sync-button" onclick="syncData()">🔄 立即同步数据</button>
                </div>
            </div>
            
            <div class="card">
                <h3>📊 资源统计</h3>
                <div style="text-align: center;">
                    <div style="background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); height: 200px; border-radius: 8px; margin-bottom: 15px; display: flex; align-items: center; justify-content: center; color: white; font-size: 16px; font-weight: bold;">📊 游戏数据图表</div>
                    <p>实时监控游戏内资源价格波动</p>
                </div>
                
                <div style="background: #f0fff4; padding: 15px; border-radius: 8px; margin-top: 15px;">
                    <h4>热门资源推荐</h4>
                    <ul class="feature-list">
                        <li>🔫 P90枪械皮肤 - 零号大坝</li>
                        <li>🛡️ 高级护甲 - 航天基地</li>
                        <li>💊 医疗物资 - 巴克什浴场</li>
                        <li>🎯 稀有配件 - 长弓溪谷</li>
                    </ul>
                </div>
            </div>
        </div>
        
        <div class="footer">
            <p>数据来源: www.kkrb.net | 三角洲行动游戏数据同步平台</p>
            <p>© 2024 数据同步中心 - 为玩家提供最及时的游戏资讯</p>
        </div>
    </div>

    <script src="/src/kkrb-sync.js"></script>
    
    <script>
        // 页面加载完成后的初始化代码
        document.addEventListener('DOMContentLoaded', function() {
            // 可以在这里添加其他初始化代码
        });
    </script>
</body>
</html>
